package com.aidex.business.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.aidex.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 销售单信息对象 bus_sales
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-20
 */
@Data
public class BusSales extends BaseEntity<BusSales>
{
    private static final long serialVersionUID = 1L;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @LogField
    @FieldRemark(name = "客户名称",field = "customerName")
    private String customerName;

    /** 客户id */
    private String customerId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @LogField
    @FieldRemark(name = "商品名称",field = "goodsName")
    private String goodsName;

    /** 商品id */
    private String goodsId;

    /** 销售数量 */
    @Excel(name = "销售数量")
    @NotBlank(message = "销售数量不允许为空")
    @LogField
    @FieldRemark(name = "销售数量",field = "count")
    private String count;

    /** 销售金额 */
    @Excel(name = "销售金额")
    @NotBlank(message = "销售金额不允许为空")
    @LogField
    @FieldRemark(name = "销售金额",field = "amount")
    private String amount;

    /** 销售时间 */
    @Excel(name = "销售时间")
    @NotBlank(message = "销售时间不允许为空")
    @LogField
    @FieldRemark(name = "销售时间",field = "salesTime")
    private String salesTime;

    /** 类型 */
    @NotBlank(message = "类型不允许为空")
    @LogField
    @FieldRemark(name = "类型",field = "type")
    private String type;

    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }

    public void setCount(String count) 
    {
        this.count = count;
    }

    public String getCount() 
    {
        return count;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    public void setSalesTime(String salesTime) 
    {
        this.salesTime = salesTime;
    }

    public String getSalesTime() 
    {
        return salesTime;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customerName", getCustomerName())
            .append("customerId", getCustomerId())
            .append("goodsName", getGoodsName())
            .append("goodsId", getGoodsId())
            .append("count", getCount())
            .append("amount", getAmount())
            .append("salesTime", getSalesTime())
            .append("type", getType())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
